//
//  JSMStrategyModel.m
//  TakeYouTourTogether
//
//  Created by king on 15/11/26.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMStrategyModel.h"

@implementation JSMStrategyModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.vid = value;
    }
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.cover forKey:@"cover"];
    [aCoder encodeObject:self.cover_route_map_cover forKey:@"cover_route_map_cover"];
    [aCoder encodeObject:self.cover_s forKey:@"cover_s"];
    [aCoder encodeObject:self.vid forKey:@"vid"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.cover = [aDecoder decodeObjectForKey:@"cover"];
        self.cover_route_map_cover = [aDecoder decodeObjectForKey:@"cover_route_map_cover"];
        self.cover_s = [aDecoder decodeObjectForKey:@"cover_s"];
        self.vid = [aDecoder decodeObjectForKey:@"vid"];
    }
    return self;
}

@end


